package com.zjk.product.feign;

import com.zjk.pojo.product.TbDict;
import com.zjk.product.feign.impl.DictFeignImpl;
import com.zjk.result.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author: gfk
 * @create: 2022/11/2
 * @Description:
 * @FileName: DictFeign
 * @History:
 * @自定义内容：
 */
@FeignClient(value = "exam5-service-dict",fallback = DictFeignImpl.class)
public interface DictFeignClient {

    @GetMapping("/dict/prodctTypeList")
    public List<TbDict> getProductTypeList();

    @GetMapping("/dict/RepaymentWayList")
    public List<TbDict> getRepaymentWayList();
    @PostMapping("/dict/saveProductType")
    public ResultResponse saveProductType(TbDict tbDict);

    @GetMapping("/dict/prodctTypeByValue/{value}")
    public TbDict getProductTypeValue(@PathVariable String value);

    @GetMapping("/dict/RepaymentWayByValue/{value}")
    public TbDict RepaymentWayByValue(@PathVariable String value);

}
